package models

import "time"

type User struct {
	BaseModel
	Id          uint      `json:"id"`
	Username    string    `json:"username"`
	Password    string    `json:"password"`
	Email       string    `json:"email"`
	AccessToken string    `json:"access_token"`
	ExpiredAt   int       `json:"expired_at"`
	CreateTime  time.Time `json:"create_time"`
	UpdateTime  time.Time `json:"update_time"`
	DeleteTime  int       `json:"delete_time"`
}

func (baseModel *User) TableName() string {
	return "ops_admin_user"
}
